Name :Find the square root function
Symbol :SQRT
Illustrate:
Find the square root function SQRT, the output parameter OUT is the square root of the input parameter IN, and when the input parameter is less than 0, the output is nan.
Image:
Parameter:
| Parameter | Statement | Type | Description |
|---|---|---|---|
| IN | Input | REAL | Enter a value |
| OUT | Output | REAL | Output value |
Example:
LD:
ST:
Interpretation:
| parameter | operand | value |
|---|---|---|
| IN | TagIn | Enter a value:4 |
| OUT | TagOut | Output value:2 |
IN inputs the corresponding type of data, and OUT outputs the square root of IN.